package com.jd.xubobo.aoplearn.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 测试controller
 * @Author xubobo1
 * @Date 2018/9/18
 */
@RestController
public class DemoController {
    @RequestMapping("/test1")
    public String test1(@RequestParam String name){
        return "hello, " + name;
    }

    @RequestMapping("/test2")
    public String test2(@RequestParam String name){
        return "hi, " + name;
    }
}
